type code = {
    name:string,
    age?:number
};
let a:code = {name:"zhangsan"}
a.name&&="lisi"
console.log(a)